#include <QApplication>
#include "screenshot.h"

#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    CaptureCB cb;
    cb.forwordCB = [=](QPixmap img){
        qDebug() << "forwordCB";
    };

    cb.finishCB = [=](int code){
        qDebug() << "finishCB" << code;
    };


    startCapture(cb);
    return a.exec();
}
